#! /bin/bash

if grep -E "^[1-9][0-9]{5}(19|20)[0-9]{2}(0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])[0-9]{3}[0-9xX]$" $1
then
    echo "Match!"
else
    echo "Not Match!"
fi

exit 0


